﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JYH.ERP.Smart
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void FormMain_Load(object sender, EventArgs e)
        {
            SynchronousData material = new SynchronousData(60, "SyncMaterialInfo");
            SynchronousData warehouse = new SynchronousData(720, "SyncWarehouseInfo");
            SynchronousData unit = new SynchronousData(720, "SyncUnitInfo");
            SynchronousData supply = new SynchronousData(720, "SyncSupplyInfo");
            SynchronousData custom = new SynchronousData(720, "SyncCustomInfo");
            SynchronousData recive = new SynchronousData(60, "SyncReciveOrder");
            SynchronousData ProductionPickingOrder = new SynchronousData(60, "SyncProductionPickingOrder");
            SynchronousData PurchaseReceiptOrder = new SynchronousData(60, "SyncPurchaseReceiptOrder");
            SynchronousData StockTransferOrder = new SynchronousData(60, "SyncStockTransferOrder");
            SynchronousData StockTakeOrder = new SynchronousData(60, "SyncStockTakeOrder");


            material.Start();
            warehouse.Start();
            unit.Start();
            supply.Start();
            custom.Start();
            recive.Start();
            ProductionPickingOrder.Start();
            PurchaseReceiptOrder.Start();
           StockTransferOrder.Start();
            StockTakeOrder.Start();

        }
    }
}
